package com.tk.exam.bo;

import com.tk.exam.domain.TkQuestions;

import java.util.ArrayList;
import java.util.List;

/**
 * Description:
 * Author: Hunter
 * Date: 2019/6/17 21:40
 */
public class QuestionsSortBo extends TkQuestions implements Comparable<QuestionsSortBo>{
    private Integer sortIndex;


    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }


    @Override
    public int compareTo(QuestionsSortBo o) {
        if(o.sortIndex > this.sortIndex){
            return -1;
        }else if(o.sortIndex < this.sortIndex){
            return 1;
        }
        return 0;
    }

}
